<%-- 
    Document   : registroInmueble
    Created on : 5/06/2013, 11:52:53 AM
    Author     : Seysame
--%>

<%@taglib prefix="spring"  uri ="http://www.springframework.org/tags" %>
<%@taglib prefix="form"  uri ="http://www.springframework.org/tags/form" %>
<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@taglib prefix="s" uri="http://www.springframework.org/tags"%>
<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en">
<link href="css/style.css" rel="stylesheet" type="text/css" />
    <head>
        <title>OHB - Online Hotel Booking</title>
    </head>
    <body>
        <div align="center">
        <h1>Registrar Inmueble</h1>
        <h2>${mensaje}</h2>

        <form:form method="POST" action="registroInmueble.htm">



            <table>
                <tr>
                    <td><form:label path="titulo"><strong>Titulo</strong></form:label></td>
                    <td><form:input path="titulo" /></td> 
                </tr>
                <tr>
                    <td><form:label path="descripcion"><strong>Descripcion</strong></form:label></td>
                    <td><form:textarea path="descripcion"  rows="10"/></td>
                </tr>
                <tr>
                    <td><form:label path="direccion"><strong>Direccion</strong></form:label></td>
                    <td><form:input path="direccion" /></td>
                </tr>
                <tr>
                    <td><form:label path="pais"><strong>Pais</strong></form:label></td>
                    <td><form:select path="pais"> 
                            <form:options items="${paises}" />
                        </form:select>
                    </td>
                </tr>

                <tr><td><strong>Ciudad</strong></td><td><select name="city"> 
                            <c:forEach items ="${ciudades}" var="ciu">

                                <option value="${ciu.key}">${ciu.value}</option> 



                            </c:forEach>

                        </select> 
                    </td>
                </tr>

                <tr>
                    <td><form:label path="tipoHabitacion"><strong>Tipo de Habitacion</strong></form:label></td>
                    <td><form:input path="tipoHabitacion" /></td>
                </tr>
                <tr>
                    <td><form:label path="tipo"><strong>Tipo</strong></form:label></td>
                    <td><form:select path="tipo"> 
                            <form:options items="${tipos}" />
                        </form:select>
                    </td>
                </tr>

                <tr>
                    <td><form:label path="capacidad"><strong>Capacidad</strong></form:label></td>
                    <td><form:select path="capacidad"> 
                            <form:options items="${cantidad}" />
                        </form:select>
                    </td>
                </tr>
                <tr>
                    <td><form:label path="precioPersona"><strong>Precio por Persona</strong></form:label></td>
                    <td><form:select path="precioPersona"> 
                            <form:options items="${precios}" />
                        </form:select>
                    </td>
                </tr>
                <tr>
                    <td><form:label path="precioNoche"><strong>Precio por Noche</strong></form:label></td>
                    <td><form:select path="precioNoche"> 
                            <form:options items="${precios}" />
                        </form:select>
                    </td>
                </tr>


                <tr>
                    <td colspan="2">
                        <input type="submit" value="registrar Inmueble"/>
                    </td>
                </tr>
            </table>	

            <%--   </form> --%>
        </form:form>
        </div>
    </body>
</html>
